package com.rightrule.rule.dto;

import lombok.Data;

import java.io.Serializable;
import java.util.Date;
import java.util.List;

@Data
public class StrategyDivisionSnapshotDTO implements Serializable {

    /**
     * 策略id
     */
    private Long strategyId;

    /**
     * 流量配置id
     */
    private Long strategyDivisionId;

    /**
     * 策略编码
     */
    private String strategyCode;

    /**
     * 分流类型：0不分流，1尾号，2随机，3表达式
     */
    private Integer divisionType;


    /**
     * 发布id todo 查看来源
     */
    private Long deployId;

    /**
     * 旁路开始时间
     */
    private Date startTime;

    /**
     * 旁路结束时间
     */
    private Date endTime;

    /**
     * 测试任务id
     */
    private Long taskId;

    /**
     * json分流配置[{"strategyCode":"xx2","strategyVersionId":"1","divisionField":"uid","fieldIndex":"[0,1]","divisionRange":"[{0,99}]"}]
     */
    private List<DecisionStrategyDivisionConfigDTO> divisionConfigs;

}
